<%@ page contentType="text/html; charset=UTF-8" language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp" %>



<table style="width:800px;border:1px solid #D2D9E7;">						
	<tr class="trHeader">
		<td style="width:05%;text-align: center;">&nbsp;</td>
		<td style="width:10%;text-align: center;font-weight: 600;">資料編號</td>
		<td style="width:37%;text-align: center;font-weight: 600;">原文標題</td>
		<td style="width:20%;text-align: center;font-weight: 600;">作者</td> 
		<td style="width:08%;text-align: center;font-weight: 600;">出版年</td> 
		<td style="width:10%;text-align: center;font-weight: 600;">
			狀態
			<a href="javascript:void(0);" onclick="$('#info2Overlay').fadeIn('fast')">
				<img src="${appPath }/resource/image/1320847230_information.png" style="vertical-align:middle;padding-left:3px;" border="0"/>
			</a>
		</td> 
		<td style="width:10%;text-align: center;font-weight: 600;">動作</td> 
	</tr>
	<c:forEach items="${PageForm.obj }" var="agricultureAndFood" varStatus="s">
		<tr class="trContent">
			<td style="text-align: center;font-weight: 600">
				${PageForm.firstResult + s.count }
			</td> 
			<td style="text-align: center;letter-spacing: 2px;font-family: 'Arial Unicode MS'">
				<span  style="color: green;">${agricultureAndFood.rec_no }</span>
			</td> 
			<td style="padding-left:10px;font-family: 'Arial Unicode MS'">
				<span id="LIST_TITLE_O_${agricultureAndFood.seq_no }">
					${agricultureAndFood.title_o  == '' ? '&nbsp;' : agricultureAndFood.title_o}
				</span>
			</td> 
			<td style="padding-left:10px;font-family: 'Arial Unicode MS'">
				<span id="LIST_AUTHOR_${agricultureAndFood.seq_no }">
					${agricultureAndFood.author  == '' ? '&nbsp;' : agricultureAndFood.author}
				</span>
			</td> 
			<td style="text-align: center;font-family: 'Arial Unicode MS'">
				<span id="LIST_YEAR_${agricultureAndFood.seq_no }">
					<c:choose>
						<c:when test="${agricultureAndFood.year == 1}">
							不明
						</c:when>
						<c:otherwise>
							${agricultureAndFood.year}
						</c:otherwise>
					</c:choose>
				</span>
			</td>			
			<td style="text-align: center;">
				<span id="LIST_FLOW_${agricultureAndFood.seq_no }">					
					<c:if test="${agricultureAndFood.flow == '1'}" >
						<%-- <span style="color:blue;">完成</span>  --%>
						<img src="${appPath }/resource/image/switch02.png"/>
					</c:if>
					
					<c:if test="${agricultureAndFood.flow == '2'}" >
						<%-- <span style="color:red;">已檢核</span> --%>
						<img src="${appPath }/resource/image/switch03.png"/>
					</c:if>
				</span>
			</td> 
			<td style="text-align: center;" id="TD_${agricultureAndFood.seq_no }">
				<c:if test="${agricultureAndFood.flow == '1'}" >
					<a href="javascript:void(0);" onclick="toResearch('${agricultureAndFood.seq_no }','${agricultureAndFood.rec_no }');" title="開始研析">
						<img src="${appPath }/resource/image/order.png" border="0" style="vertical-align: middle;"/>
					</a>
				</c:if>
				<c:if test="${agricultureAndFood.flow == '2'}" >
					<img src="${appPath }/resource/image/1317488036_ok.gif" border="0" style="vertical-align: middle;"/>					
				</c:if>
			</td>
		</tr>
	</c:forEach>
</table>
<div style="width:800px;padding-top:10px;">${PageForm.pageInfo}</div>

<%-- 
<form:form method="post" modelAttribute="PageForm" >
<span style="font-family: 'Arial Unicode MS'">
nowPage     : <form:input path="nowPage" /><br/>
firstResult : <form:input path="firstResult" /><br/>
rowsPerPage : <form:input path="rowsPerPage" /><br/>
totalPages  : <form:input path="totalPages" /><br/>
totalRows   : <form:input path="totalRows" /><br/>
requery     : <form:input path="requery" /><br/>
</span>
</form:form>
--%>

<form:form method="post" modelAttribute="PageForm" >
<form:hidden path="nowPage" />
<form:hidden path="firstResult" />
<form:hidden path="rowsPerPage" />
<form:hidden path="totalPages" />
<form:hidden path="totalRows" />
<form:hidden path="requery" />
</form:form>